//
//  ShouKuanTowViewController.m
//  跨界收
//
//  Created by Allen on 2018/11/11.
//  Copyright © 2018年 gztx. All rights reserved.
//

#import "ShouKuanTowViewController.h"


@interface ShouKuanTowViewController ()

@end

@implementation ShouKuanTowViewController
- (void)pageController:(WMPageController *)pageController lazyLoadViewController:(__kindof UIViewController *)viewController withInfo:(NSDictionary *)info
{
    NSLog(@"%@",info);
    self.navigationItem.title = info[@"title"];
}
- (void)pageController:(WMPageController *)pageController willEnterViewController:(__kindof UIViewController *)viewController withInfo:(NSDictionary *)info
{
    NSLog(@"%@",info);
    self.navigationItem.title = info[@"title"];
}
- (CGRect)pageController:(WMPageController *)pageController preferredFrameForContentView:(WMScrollView *)contentView
{
    //获取状态栏的rect
    CGRect statusRect = [[UIApplication sharedApplication] statusBarFrame];
    //获取导航栏的rect
    CGRect navRect = self.navigationController.navigationBar.frame;
    return CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-44.0-statusRect.size.height- navRect.size.height+49);
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"收款";
    // Do any additional setup after loading the view.
}

@end
